badly formed token

why do I get the badly formed token for this line of code?:
 

const string path = "\\dfs-wch-02.mw.nos.boeing.com\WCH-MIL\Bombers\CONECT\Analysis & Integration Team\Specialty Engineering\System Safety_Nuc Cert\System Safety\Hazard Worksheets\"

johnkeven - Fri Feb 24 12:35:33 EST 2012

Re: badly formed token
Mathias Mamsch - Fri Feb 24 17:16:30 EST 2012

Because you need to escape backslashes in DOORS strings:
 

const string path = "\\\\dfs-wch-02.mw.nos.boeing.com\\WCH-MIL\\Bombers\\CONECT\\Analysis & Integration Team\\Specialty Engineering\\System Safety_Nuc Cert\\System Safety\\Hazard Worksheets\\"

 


Hope that helps, regards, Mathias

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS